//
//  CommonTools.swift
//  Faner_Weibo
//
//  Created by 范英强 on 16/1/27.
//  Copyright © 2016年 范英强. All rights reserved.
//

import UIKit

let SCREENW = UIScreen.mainScreen().bounds.size.width
let SCREENH = UIScreen.mainScreen().bounds.size.height

let HMSwitchRootVcNotification = "HMSwitchRootVcNotification"

func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}

func randomColor() -> UIColor{
    return RGB(red: CGFloat(random() % 256), green: CGFloat(random() % 256), blue: CGFloat(random() % 256))
}
